var fs = require('fs');

var time = process.hrtime();

var data =  fs.readFileSync('./xx.JPG');

var diff = process.hrtime(time);

console.log("读取文件操作耗时%d纳秒", diff[0]*1e9 + diff[1]);

console.log(diff[0],diff[1]);